package GoftModel

import "fmt"

type UserModel struct {
	Id       int    `json:"id" gorm:"column:id" uri:"id" binding:"required,gt=0"`
	Name     string `json:"name"  gorm:"column:name"`
	ApiToken string `json:"api_token"  gorm:"column:api_token"`
}

func NewUserModel() *UserModel {
	return &UserModel{}
}

func (m *UserModel) String() string {
	return fmt.Sprintf("user_id:%d,name:%s,api_token:%s", m.Id, m.Name, m.ApiToken)
}
